1. /* sisccvbn.cpp by K.Tsuru */
  2. // function ID 3558 BRADIX
  3. /***************************************************************
  4. SN library
  5. SInteger class
  6. DRADIX ---> BRADIX radix conversion
  7. A radix conversion by square coupling method since ver. 2.18
  8. ***************************************************************/
  9. #ifndef SN_H
  10. #include "sn.h"
  11. #endif
  12. static const SInteger R(DRADIX);
  13. SInteger SCConvToBin(const SLong& x) {
  14. uint sz = x.Head() + 1u;
  15. SInteger *w = new SInteger[sz]; // work area
  16. const fType* pf = x.ReadFigures();
  17. for(uint i = 0; i < sz; i++) w[i].SetShort(pf[i]);
  18. SquareCoupling<SInteger> cv(w, R, sz);
  19. SInteger p;
  20. p = cv.getValue(); // before delete[];
  21. delete[] w;
  22. return p;
  23. }

sisccvbn.cpp : last modifiled at 2017/03/13 14:32:00(739 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).